<div class="bigtitle">Quản Lý Danh Mục Đơn Giá &gt; Thêm Mới</div>
<table class='tblcontent' cellspacing='0' cellpadding='0' border='0'>
	<tr>
		<td>
			<?php echo form_open(site_url('list_unitprice/addnew'),array('name'=>'frm','onsubmit'=>'return f_validate()'),array('hidden_status'=>''))?>			
			<table class='tblinputform' cellspacing='1' cellpadding='2' border='0' width='50%'>
				<tr>
					<th width='30%'>Đơn giá</th>
					<td width='80%'><input type='text' name='txt_province' style='width:300px;' maxlength='50' value="<?php //echo $profile->username?>"/></td>
				</tr>
                <tr>
					<th>Tỷ giá VND</th>
					<td><input type='text' name='txt_to_vnd' style='width:300px;' maxlength='50' value=""/></td>
				</tr>
			</table>
			<div class='ctrlbtn'>
				<input type='button' name='btn_save' value='<?php echo lang('label_save')?>' onclick='return f_validate()'/>	
				<input type='button' name='btn_cancel' value='<?php echo lang('label_cancel')?>' onclick='window.location="<?php echo site_url('list_unitprice')?>";'/>
			</div>
            <div class='alertmsg'><?php //echo $profile->alertmsg?></div>
			<?php echo form_close()?>
		</td>
	</tr>
</table>
<script type='text/javascript'>
	f_onload();
	function f_onload(){ document.frm.txt_province.focus();}
	function f_validate(){
		form = document.frm;
		if(form.txt_province.value==''){
			alert("Vui lòng nhập đơn giá ");
			form.txt_province.focus();
			return false;
		}	
		form.submit();
	}
</script>